GtkWindow: Don't assume no shadow width even when not supported
authorJonas Ådahl <jadahl@gmail.com>
Mon, 18 May 2015 03:19:14 +0000 (11:19 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 18 May 2015 11:46:43 +0000 (07:46 -0400)
commitf6d021512a3d076c8a559e52ea1d1c84ff5c4154
treea62b1439de28a893ca7bff6e2eb83aa671735233
parentfdcb076b645b715a677f9af83f2b975b1f04cbc1
GtkWindow: Don't assume no shadow width even when not supported

Even if a window doesn't support client side shadow
(gtk_window_supports_client_shadow returns FALSE), don't assume the
shadow width is zero, as CSD may have been enabled anyway (meaning
priv->client_decorated is TRUE). In that case we still need to report
the correct width.

https://bugzilla.gnome.org/show_bug.cgi?id=749451
gtk/gtkwindow.c